/*
20 10
b a
0 1
 */
#include <iostream>
using namespace std;
void func(int a, char *p){
}
void func(char *p, int a){
}
void swap(int *a, int *b){
	int tmp = *a;
	*a = *b;
	*b = tmp;
}
void swap(char *a, char *b){
	char tmp = *a;
	*a = *b;
	*b = tmp;
}
void swap(bool *a, bool *b){
	bool  tmp = *a;
	*a = *b;
	*b = tmp;
}
int main(){
	int x = 10; 
	int y = 20;
	swap(&x, &y);
	cout << x <<" " << y << endl;
	char a = 'a';
	char b = 'b';
	swap(&a, &b);
	cout << a << " " << b << endl;
	bool f1 = true;
	bool f2 = false;
	swap(&f1, &f2);
	cout << f1 << " " << f2 << endl;
	return 0;
}
